﻿{% extends 'base.html' %}
{% block title %}
	<title>Wow Dkp Engine</title>
	<meta name="Keywords" content="wow,dkp"/>
	<meta name="description" content="A wow dkp system" />
	<script src="http://www.google.com/jsapi"></script>
	<script type="text/javascript">
			//<![CDATA[
			google.load("jquery", "1.3.2");
			//]]>
	</script>
	<script type="text/javascript" src="/static/javascript/jquery.idTabs.min.js"></script>
	<link rel="stylesheet" href="/static/css/tab.css" type="text/css" />
	<style type="text/css" media="screen">
		.usual ul a:hover {
			color: #fff;
		}
		.usual ul a.selected {
			background-color: #333;
		}
		.tab {
			background-color: #333;
		}
		textarea {
			border: 1px solid #666;
			background-color: #999;
		}
		input {
			border: 1px solid #666;
			background-color: #999;
		}
		label {
			font-weight: bold;
		}
	</style>
{% endblock %}
{% load filter %}
{% block contents %}
<div id="header">
	<div id="main-menu">
		<ul class=menu>
			<li class="normal-page" ><a href="/">{{ multi_language.ca_home }}</a></li>
			<li class="normal-page"><a href="/pub/events/">{{ multi_language.ca_event }}</a></li>
			<li class="normal-page"><a href="/pub/players/">{{ multi_language.ca_players }}</a></li>
			<li class="normal-page"><a href="/pub/overview/class/">{{ multi_language.ca_class }}</a></li>
			<li class="normal-page"><a href="/pub/overview/score/">{{ multi_language.ca_overview}}</a></li>
			<li class="current-page"><a href="/admin/site/">{{ multi_language.ca_admin}}</a></li>
		</ul>
	</div>
</div>
<div id="main">
	<div id="main-sider-bar">
		<div id="sider-body">
			<ul id="admin-menu">
				<li class="normal-page"><a href="/admin/site/">{{ multi_language.ca_site_config }}</a></li>
				<li class="normal-page"><a href="/admin/events/">{{ multi_language.ca_event_manage }}</a></li>
				<li class="normal-page"><a href="/admin/players/">{{ multi_language.ca_player_manage }}</a></li>
				<li class="current-page"><a href="/admin/events/create/">{{ multi_language.ca_create_event }}</a></li>
				<li class="normal-page"><a href="/admin/events/import/">{{ multi_language.ca_import_event }}</a></li>
				<li class="normal-page"><a href="/admin/import/adjust/">{{ multi_language.ca_import_dkp }}</a></li>
			</ul>
		</div>
	</div>
	<div id="main-bar">
	<form method="post" action=".">
	<label for="event_title">{{ multi_language.ca_event_title }}</label>
	<input id="event_title" type="text" name="title"/><br /><br />
	<label for="event_summary">{{ multi_language.ca_event_summary }}</label>
	<textarea name="summary" rows="6" cols="100%"></textarea><br /><br />
	<div id="player-tab">
		<div id="usual1" class="usual"> 
			<ul>
				<li><a class="selected warlock-color" href="#tab1">{{ multi_language.ca_warlock }}</a></li> 
				<li><a href="#tab2" class="priest-color">{{ multi_language.ca_priest }}</a></li>
				<li><a href="#tab3" class="mage-color">{{ multi_language.ca_mage }}</a></li>
				<li><a href="#tab4" class="druid-color">{{ multi_language.ca_druid }}</a></li>
				<li><a href="#tab5" class="rogue-color">{{ multi_language.ca_rogue }}</a></li>
				<li><a href="#tab6" class="shaman-color">{{ multi_language.ca_shaman }}</a></li>
				<li><a href="#tab7" class="hunter-color">{{ multi_language.ca_hunter }}</a></li>
				<li><a href="#tab8" class="paladin-color">{{ multi_language.ca_paladin }}</a></li>
				<li><a href="#tab9" class="warrior-color">{{ multi_language.ca_warrior }}</a></li>
				<li><a href="#tab10" class="deathknight-color">{{ multi_language.ca_deathknight }}</a></li>
			</ul>
			<div class="tab" id="tab1">
			{%for player in players%}
			{% ifequal player.player_class '9'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab2">
			{%for player in players%}
			{% ifequal player.player_class '5'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab3">
			{%for player in players%}
			{% ifequal player.player_class '8'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab4">
			{%for player in players%}
			{% ifequal player.player_class '11'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab5">
			{%for player in players%}
			{% ifequal player.player_class '4'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab6">
			{%for player in players%}
			{% ifequal player.player_class '7'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab7">
			{%for player in players%}
			{% ifequal player.player_class '3'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab8">
			{%for player in players%}
			{% ifequal player.player_class '2'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab9">
			{%for player in players%}
			{% ifequal player.player_class '1'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
			<div class="tab" id="tab10">
			{%for player in players%}
			{% ifequal player.player_class '6'%}
			<input type="checkbox" name="player" value="{{player.key}}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
			{% endifequal %}
			{%endfor%}
			</div>
		</div>
	</div>
	<script type="text/javascript">
	$("#usual1 ul").idTabs();
	</script>
	<br /><br />
	<input type="submit" name="submit" value="{{ multi_language.ca_submit }}" id="submit"/>
	</form>
</div>
</div>
{% endblock %}